package com.atguigu.i_test;

public abstract class Person {
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //行为 : 认为运动员和教练吃的方式不一样 把它定义成抽象方法 [自己选]
    public abstract void eat(String food);
    public abstract void sleep();
}
